package cn.tedu.controller;

import cn.tedu.common.vo.JsonResult;
import cn.tedu.service.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 参数校验 validation Knif4j
 * @author Kiven
 */
@RestController
@RequestMapping("/front/user")
public class UserController {
    @Autowired
    private IUserService userService;

    @GetMapping
    public JsonResult list(){
        return JsonResult.success(userService.list());
    }
}
